﻿using System;
using GCTrackableRace.Interfaces;

namespace GcTrackableRace.Entities
{
	public class LocationInfo: ILocationInfo
	{
		public string CountryCode { get; set; }
		public string CountryName { get; set; }

		public string StateName { get; set; }
		public string StateCode { get; set; }
	
		public string Area { get; set; }
		public string PostalCode { get; set; }
		
		public double? Latitude { get; set; }
		public double? Longitude { get; set; }

		public override string ToString()
		{
			return
				String.Format("Country: {0}, State: {1}, Area: {2}, Postal-Code: {3}",
				CountryCode,
				StateName,
				Area,
				PostalCode);
		}
	}

}
